package com.endpoint.swagger2demo.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DemoController {
    @GetMapping(value = "demo")
    public String hello(String name){
        return "hello Swagger2!"+name;
    }

    @GetMapping(value ="/user/hello")
    public String userHello(String name){
        return "userSwagger2!"+name;
    }
}
